/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.startingbsd.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Felipe
 */
public class JPAUtil {

    static EntityManagerFactory emf = null;

    static {
        emf = Persistence.createEntityManagerFactory("STARTING_BSDPU");
    }

    public static EntityManagerFactory getEmf() {
        return emf;
    }

    public static void closeEntityManagerFactory() {
        emf.close();
    }
}
